﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Amoo
{
    public partial class WebForm1 : Code.Business.PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["userSite"] == null)
            {
                Response.Redirect("/Visualizar/comunidade.aspx?idComunidade=1");
            }
            else
            {
                Response.Redirect("/Visualizar/comunidadeporusuario.aspx?idUsuario=" + ((Code.Entity.Usuario)Session["userSite"]).idUsuario.ToString());
            }
        }

        protected void btnSair_Click(object sender, ImageClickEventArgs e)
        {
            Session["userSite"] = null;
            Response.Redirect("/");
        }
    }
}
